﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FlashCards.Model;

namespace FlashCards.WebApp.Models
{
    public class FlashcardsModel
    {
        public FlashcardsModel(int userId, List<FlashcardSet> sets, bool includeFlashcards, bool includeGroup)
        {
            UserID = userId;

            FlashcardSets = new List<FlashcardSetModel>();
            foreach (var item in sets)
            {
                FlashcardSets.Add(new FlashcardSetModel(item, includeFlashcards, includeGroup));
            }
        }

        public int UserID { get; set; }

        public List<FlashcardSetModel> FlashcardSets { get; set; }
    }
}